//
//  DCLoginViewController.m
//  商城
//
//  Created by runone02 on 2018/8/27.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "DCLoginViewController.h"
#import "LoginView.h"
#import "DCRegisteredViewController.h"


@interface DCLoginViewController ()
/** 登录*/
@property (nonatomic,strong) LoginView *loginVieww;



@end

@implementation DCLoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self loadLoginView];
}

- (void)loadLoginView{
    WEAKSELF
    self.loginVieww = [[LoginView alloc]init];
    self.loginVieww.outButtonBlock = ^{
        [weakSelf dismissViewControllerAnimated:YES completion:^{
            
        }];
    };
    
    self.loginVieww.registerButtonBlock = ^{
        
        DCRegisteredViewController *regis = [[DCRegisteredViewController alloc]init];
        [weakSelf.navigationController pushViewController:regis animated:YES];
    };
    
    self.loginVieww.QQButtonBlock = ^{
        NSLog(@"QQ登录");
    };
    
    self.loginVieww.weiboButtonBlock = ^{
        NSLog(@"微博登录");
    };
    
    self.loginVieww.weixinButtonBlock = ^{
        NSLog(@"微信登录");
    };
    
    self.loginVieww.qitaButtonBlock = ^{
        NSLog(@"其他登录");
    };
    
    [self.view addSubview:self.loginVieww];
    [self.loginVieww mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(self.view);
    }];
}




@end
